<?php $name = system_controller_front::getInstance()->getRequest()->getActionName(); ?>
<div class="body tabs">
	<ul class="list">
		<li<?php if($name=='list') echo ' class="current"'; ?>><a href="<?php echo $this->url('collection/item/list', array('site_id' => $this->site->getId()));?>"><?php echo $this->language('ALL ITEM LIST');?><?php if($name=='list') echo ' »'; ?></a></li>
		<?php if($this->row && $this->row->getId()) { ?>
		<li<?php if($name=='edit') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('collection/item/edit', array('id' => $this->row->getId(), 'site_id' => $this->row->getSiteId()));?>"><?php echo $this->language('EDIT ITEM');?><?php if($name=='edit') echo ' »'; ?></a>
		</li>
		<li><a href="<?php echo $this->url('collection/item/collect', array('id' => $this->row->getId(), 'site_id' => $this->row->getSiteId()));?>" class="collect"><?php echo $this->language('COLLECT');?><?php if($name=='collect') echo ' »'; ?></a></li>
		<li><a href="<?php echo $this->url('collection/special/index', array('item_id' => $this->row->getId()));?>"><?php echo $this->language('SPECIAL');?></a></li>
		<?php } else { ?>
		<li<?php if($name=='addnew') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('collection/item/addnew', array('site_id' => $this->site->getId()));?>"><?php echo $this->language('CREATE A NEW ITEM');?><?php if($name=='addnew') echo ' »'; ?></a>
		</li>
		<?php } ?>
	</ul>
	<div class="clearfix"></div>
</div>
